package com.woniu.repaircenter.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.woniu.exception.XinanException;
import com.woniu.repaircenter.models.dto.HousingMaterialDTO;
import com.woniu.repaircenter.models.param.SearchMaterialParam;
import com.woniu.repaircenter.models.param.UpdateMaterialParam;
import com.woniu.repaircenter.service.model.HousingMaterial;

import java.util.List;

/**
 * <p>
 * 材料表 服务类
 * </p>
 *
 * @author 吕雨泽
 * @since 2024年12月06日
 */
public interface HousingMaterialService extends IService<HousingMaterial> {

    void insertHousingMaterial(HousingMaterial bean)throws XinanException;

    void recoverMaterial(String housingMaterialCode) throws XinanException;

    void removeMaterial(String housingMaterialCode) throws XinanException;

    PageInfo<HousingMaterialDTO> searchHousingMaterialList(SearchMaterialParam bean) throws XinanException;

    void updateHousingMaterial(UpdateMaterialParam bean) throws XinanException;

    HousingMaterial seatateHousingMaterial(String materialCode)throws XinanException;

    Integer updateHousingInventory(String materialCode, Integer count)throws XinanException;

    List<HousingMaterialDTO> getHousingMaterialList();

    void updateHousing(String materialCode, Integer count);
}
